{% extends "base.html" %}

{% block navbar %}
<a href="{{shop_base}}/">Home</a> 
{% endblock %}

{% block content %}
<h2>Change your password</h2>
<p>For the sake of security, please enter your old password, and then enter your new password twice.</p>

<form action="" method="post">
<p>
	{% if form.old_password.errors %}
		{{ form.old_password.html_error_list }}
	{% endif %}
	<label for="id_old_password">Old password:</label>
	{{ form.old_password }}
</p>
<p>
	{% if form.new_password1.errors %}
		{{ form.new_password1.html_error_list }}
	{% endif %}
	<label for="id_new_password1">New password:</label>
	{{ form.new_password1 }}
</p>
<p>
	{% if form.new_password2.errors %}
		{{ form.new_password2.html_error_list }}
	{% endif %}
	<label for="id_new_password2">Confirm new password:</label>
	{{ form.new_password2 }}
</p>	
	<input type="submit" value= "Change password" />
</form>

{% endblock %}
